package com.fc.common.util;

import java.text.SimpleDateFormat;

/**
 * <p>Title: DateUtil</p>
 * <p>Description: </p>
 * <p>Company: </p> 
 * @author wanghw
 * @date 2016年3月20日 
 */
public class DateUtil {
	public static final String YMD = "yyyyMMdd";
	public static final String Y_M_D = "yyyy-MM-dd";
	public static final String Y_M_D_HMS = "yyyy-MM-dd HH:mm:ss";
	public static final String Y_M_D_HM = "yyyy-MM-dd HH:mm";
	
	/**
	 * @param pattern
	 * @return
	 */
	public static SimpleDateFormat getDateFormat(String pattern) {
    	return new SimpleDateFormat(pattern);
    }
}
